<?php
return [
    [
        'name' => __('common.system'),
        'child' => [
            [
                'name' => __('system.group.menu'),
                'controller' => 'system/group',
                'actions' => [
                    'index' => __('common.list'),
                    'permission' => __('common.permission'),
                ]
            ],
            [
                'name' => __('system.role.menu'),
                'controller' => 'system/role',
                'actions' => [
                    'index' => __('common.list'),
                    'create' => __('common.create'),
                    'edit' => __('common.edit'),
                    'delete' => __('common.delete'),
                    'permission' => __('common.permission'),
                ]
            ],

            [
                'name' => __('system.user.menu'),
                'controller' => 'system/user',
                'actions' => [
                    'index' => __('common.list'),
                    'create' => __('common.create'),
                    'edit' => __('common.edit'),
                    'delete' => __('common.delete'),
                    'setPassword' => '设置密码',
                    'recharge' => '充值',
                ]
            ],
            [
                'name' => '医院管理',
                'controller' => 'system/hospital',
                'actions' => [
                    'index' => __('common.list'),
                    'create' => __('common.create'),
                    'edit' => __('common.edit'),
                    'delete' => __('common.delete'),
                ]
            ],
            [
                'name' => '部门管理',
                'controller' => 'system/department',
                'actions' => [
                    'index' => __('common.list'),
                    'create' => __('common.create'),
                    'edit' => __('common.edit'),
                    'delete' => __('common.delete'),
                ]
            ],
        ]
    ],
    [
        'name' => '预约咨询',
        'child' => [
            [
                'name' => '全部咨询',
                'controller' => 'ca/customer',
                'actions' => [
                    'index' => __('common.list'),
                    'create' => __('common.create'),
                    'edit' => __('common.edit'),
                    'delete' => __('common.delete'),
                    'can_department' => '查看本部门数据',
                    'onlineArriving' => '线上签到',
                    'visit' => '回访',
                    'spend' => '消费',
                    'arriving' => '签到',
                    'swt' => '商务通',
                    'export' => '导出',
                    'searchRepeat' => '查重',
                ]
            ],
            [
                'name' => '今日工作',
                'controller' => 'ca/day',
                'actions' => [
                    'index' => __('common.list'),
                    'edit' => __('common.edit'),
                    'delete' => __('common.delete'),
                    'can_department' => '查看本部门数据',
                    'onlineArriving' => '线上签到',
                    'visit' => '回访',
                    'spend' => '消费',
                    'arriving' => '签到',
                    'swt' => '商务通',
                    'export' => '导出',
                    'searchRepeat' => '查重',
                ]
            ],
            [
                'name' => '公海资源',
                'controller' => 'ca/public',
                'actions' => [
                    'index' => __('common.list'),
                    'receive' => '领取',
                ]
            ],
            [
                'name' => '回访记录',
                'controller' => 'ca/visit',
                'actions' => [
                    'index' => __('common.list'),
                    'annotate' => '批注',
                ]
            ],
            [
                'name' => '话务领取',
                'controller' => 'ca/public-mobile',
                'actions' => [
                    'index' => __('common.list'),
                    'receive' => '领取',
                    'allocation' => '分配',
                ]
            ],
            [
                'name' => '话务列表',
                'controller' => 'ca/caller',
                'actions' => [
                    'index' => __('common.list'),
                    'create' => __('common.create'),
                    'edit' => __('common.edit'),
                    'delete' => __('common.delete'),
                    'can_department' => '查看本部门数据',
                    'visit' => '回访',
                    'spend' => '消费',
                    'arriving' => '签到',
                    'onlineArriving' => '线上签到',
                    'swt' => '商务通',
                    'export' => '导出',
                ]
            ],
            [
                'name' => '今日预计到院',
                'controller' => 'ca/day-arriving',
                'actions' => [
                    'index' => __('common.list'),
                    'create' => __('common.create'),
                    'edit' => __('common.edit'),
                    'delete' => __('common.delete'),
                    'can_department' => '查看本部门数据',
                    'visit' => '回访',
                    'spend' => '消费',
                    'arriving' => '签到',
                    'onlineArriving' => '线上签到',
                    'swt' => '商务通',
                    'export' => '导出',
                ]
            ], [
                'name' => '预计明日到院',
                'controller' => 'ca/tomorrow-arriving',
                'actions' => [
                    'index' => __('common.list'),
                    'create' => __('common.create'),
                    'edit' => __('common.edit'),
                    'delete' => __('common.delete'),
                    'can_department' => '查看本部门数据',
                    'visit' => '回访',
                    'spend' => '消费',
                    'arriving' => '签到',
                    'onlineArriving' => '线上签到',
                    'swt' => '商务通',
                    'export' => '导出',
                ]
            ], [
                'name' => '消费数据',
                'controller' => 'ca/promotion',
                'actions' => [
                    'index' => __('common.list'),
                    'create' => __('common.create'),
                    'edit' => __('common.edit'),
                    'delete' => __('common.delete'),

                ]
            ],
        ]
    ],
    [
        'name' => '统计分析',
        'child' => [
            [
                'name' => '到诊排行榜',
                'controller' => 'analysis/caller',
                'actions' => [
                    'index' => __('common.list'),
                ]
            ],
            [
                'name' => '首页统计',
                'controller' => 'analysis/home',
                'actions' => [
                    'index' => __('common.list'),
                ]
            ], [
                'name' => '网转数据统计',
                'controller' => 'analysis/caller',
                'actions' => [
                    'effective' => '网转数据统计',
                    'pager_effective' => '数据源',
                ]
            ], [
                'name' => '推广月报',
                'controller' => 'analysis/caller',
                'actions' => [
                    'promotion' => '推广月报',
                    'pager_promotion' => '数据源',
                ]
            ],
        ]
    ],
    [
        'name' => '档案管理',
        'child' => [
            [
                'name' => '病种管理',
                'controller' => 'ca/disease',
                'actions' => [
                    'index' => __('common.list'),
                    'create' => __('common.create'),
                    'edit' => __('common.edit'),
                    'delete' => __('common.delete')
                ]
            ],
            [
                'name' => '咨询方式',
                'controller' => 'ca/consultation-way',
                'actions' => [
                    'index' => __('common.list'),
                    'create' => __('common.create'),
                    'edit' => __('common.edit'),
                    'delete' => __('common.delete')
                ]
            ],
            [
                'name' => '来院方式',
                'controller' => 'ca/come-way',
                'actions' => [
                    'index' => __('common.list'),
                    'create' => __('common.create'),
                    'edit' => __('common.edit'),
                    'delete' => __('common.delete')
                ]
            ],
            [
                'name' => '来源',
                'controller' => 'ca/source',
                'actions' => [
                    'index' => __('common.list'),
                    'create' => __('common.create'),
                    'edit' => __('common.edit'),
                    'delete' => __('common.delete')
                ]
            ],
            [
                'name' => '医生管理',
                'controller' => 'ca/docker',
                'actions' => [
                    'index' => __('common.list'),
                    'create' => __('common.create'),
                    'edit' => __('common.edit'),
                    'delete' => __('common.delete')
                ]
            ],
            [
                'name' => '短信模板',
                'controller' => 'ca/sms-template',
                'actions' => [
                    'index' => __('common.list'),
                    'create' => __('common.create'),
                    'edit' => __('common.edit'),
                    'delete' => __('common.delete')
                ]
            ],
            [
                'name' => '交接记录',
                'controller' => 'ca/handover-record',
                'actions' => [
                    'index' => __('common.list'),
                    'caller' => '话务交接',
                    'customService' => '客服交接'
                ]
            ],
        ]
    ],
    [
        'name' => '系统设置',
        'child' => [
            [
                'name' => '字典',
                'controller' => 'settings/code',
                'actions' => [
                    'index' => __('common.list'),
                    'create' => __('common.create'),
                    'edit' => __('common.edit'),
                    'delete' => __('common.delete')
                ]
            ],
            [
                'name' => '字典值',
                'controller' => 'settings/code-value',
                'actions' => [
                    'index' => __('common.list'),
                    'create' => __('common.create'),
                    'edit' => __('common.edit'),
                    'delete' => __('common.delete')
                ]
            ]
        ]
    ],
    [
        'name' => '系统日志',
        'child' => [
            [
                'name' => '登录日志',
                'controller' => 'log/login',
                'actions' => [
                    'index' => __('common.list')
                ]
            ],
            [
                'name' => '操作日志',
                'controller' => 'log/operation',
                'actions' => [
                    'index' => __('common.list')
                ]
            ]
        ]
    ]
];
